package com.dd.ent.car.common.player;

import com.dd.ent.car.common.bean.video.Video;
import com.dd.ent.car.ui.home.templet.video.VideoItemView;

/**
 * Author:LiuJianSheng
 * Date:2016/7/20
 * 记录正在播放的视频的一些状态和数据
 */
class PlayInfo {
    private boolean hasInsertPlayRecord;//是否已经添加播放记录
    private int currentPlayPosition;//当前播放进度
    private int duration;//当前视频的时长

    private VideoInfo videoInfo;

    PlayInfo(VideoInfo videoInfo) {
        this.videoInfo = videoInfo;
    }

    public VideoInfo getVideoInfo() {
        return videoInfo;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public void setHasInsertPlayRecord(boolean hasInsertPlayRecord) {
        this.hasInsertPlayRecord = hasInsertPlayRecord;
    }

    public boolean isHasInsertPlayRecord() {
        return hasInsertPlayRecord;
    }

    public void setCurrentPlayPosition(int currentPlayPosition) {
        this.currentPlayPosition = currentPlayPosition;
    }

    public int getCurrentPlayPosition() {
        return currentPlayPosition;
    }
}
